<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中山市美斯特实业有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" language="javascript" src="system/js/DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="system/js/validate.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
	validate_Effect("#reason","[调整依据不能为空，请填写！]");
	$("#date").blur(function(){
		var dateValue=validateValueIsNull("#date");		
		if(dateValue){
			after_effect("#date","日期不能为空，请填写！");
		}else{
			validateDateMat("#date");
		}
	});
});

function checkForm(){		
	var dateValue=validateValueIsNull("#date");
	if(dateValue){
		after_effect("#date","日期不能为空，请填写！");
		return false;
	}
	if(!validateDateMat("#date")){
		return false;
	}
	
	var menuNameIsNull=validateValueIsNull("#reason");
	if(menuNameIsNull){
		after_effect("#reason","调整依据不能为空，请填写！");
		return false;
	}	
}

function after_effect(idName,message_tip){
	var object=$(idName);
	var message="<span style='color: red'>"+message_tip+"</span>";
	object.next().remove();
	object.after(message);			
}

</script>

</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 车船应税调整年月</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<div class="table" id="showview">
			<form action="system/book/car_adjusttax.do" method="post" onsubmit="return checkForm()">	
			<input type="hidden" name="ccdjh" value="${param.ccdjh }">			
				<mytag:View name="Ccdjxx" table="com.zhongkai.model.book.TDjCcdjxx" id="${param.ccdjh }" ></mytag:View>
				<logic:notEmpty name="Ccdjxx">										
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					  	 <td colspan="6" style="color: blue;font-size: 20">车船资料</td>
					  </tr>
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >车船牌照号码</td>
					    <td >
					      <input  type="text"  value="${Ccdjxx.ccpzh}" disabled="disabled"/>
					    </td>
					    <td >车船类型</td>
					    <mytag:View  name="Jjcclx" table="com.zhongkai.model.book.TDmCcsJjcclx" id="${Ccdjxx.jjcclxDm }" entityStringId="true"></mytag:View>
					    <td colspan="3">
					      <input  type="text"  value="${Jjcclx.jjcclxMc }" disabled="disabled"/>
					    </td>
					  </tr>
					 <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >纳税人编码</td>
					    <td >
					      <input  type="text"   value="${Ccdjxx.nsrbm}" disabled="disabled"/>
					    </td>
					     <td >登记状态</td>
					     <mytag:View name="djzt" table="com.zhongkai.model.book.TDmCcsDjzt" id="${Ccdjxx.djztDm }" entityStringId="true"></mytag:View>
					    <td colspan="3"><%--必须包含登记状态，否则连页面也查找不到 --%>
					      <input  type="text"   value="${djzt.djztMc}" disabled="disabled"/>	      
					    </td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >车主名称</td>
					    <td >
					      <input  type="text"   value="${Ccdjxx.czMc}" disabled="disabled"/>
					    </td>
					    <td >身份证号码</td>
					    <td colspan="3">
					      <input  type="text" value="${Ccdjxx.sfzhm}" disabled="disabled"/>
					    </td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >厂牌型号</td>
					    <td ><input  type="text"  value="${Ccdjxx.cpxh}" disabled="disabled"/></td>
					    <td  >购置时间</td>
					    <td  colspan="3"><input  type="text"  value="${Ccdjxx.gzRq}" disabled="disabled"/></td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td>发动机号</td>
					    <td >
					      <input  type="text"  value="${Ccdjxx.fdjh}" disabled="disabled"/>
					    </td>
					    <td  >车架号</td>
					    <td colspan="3">
					      <input  type="text" value="${Ccdjxx.cjh}" disabled="disabled"/>
					    </td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >排气量（升）</td>
					    <td ><input  type="text"  value="${Ccdjxx.pql}" disabled="disabled"/></td>
					    <td >整备质量（吨）</td>
					    <td colspan="3"><input  type="text"   value="${Ccdjxx.zbzl}" disabled="disabled"/></td>
					  </tr>
  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >核定载重量（吨）</td>
					    <td ><input type="text" value="${Ccdjxx.hdzzl}" disabled="disabled"/></td>
					    <td >核定载客（人）</td>
					    <td ><input type="text"   value="${Ccdjxx.hdzkl}" disabled="disabled"/></td>					    
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >登记日期</td>
					    <td ><input  type="text"  value="${Ccdjxx.djRq}" disabled="disabled"/></td>
					    <td >行驶证发证日期</td>
					    <td colspan="3"><input  type="text"  value="${Ccdjxx.fzRq}" disabled="disabled"/></td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					  	 <td colspan="6">|</td>
					  </tr>
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					  	 <td colspan="6" style="color: blue;font-size: 20">应税起始年月调整信息</td>
					  </tr>
					  
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >应税起始日期</td>
					    <td ><input  type="text" value="${Ccdjxx.sbqsny}" disabled="disabled"/></td>	
					     <td ><b>调整后的应税起始日期</b></td>
					    <td colspan="3"><input  type="text" id="date" name="adjusttax_date" /></td>				   
					  </tr>
					  
					   <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td ><b>调整依据</b></td>
					    <td colspan="5"><textarea name="reason" id="reason" cols="50" rows="3"></textarea>*必填</td>
					  </tr>
					  
					 <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td height="30" colspan="6" class="form_button" style="padding-top:10px;">
					      <div align="center">
					        <input type="submit"  value="修改" />&nbsp;&nbsp;
					        <input type="button"  value="返回" onClick="location.href='${pageScope.basePath }system/search/unisearch.jsp?module=book/car_adjusttax_form.jsp'" />
					        </div>
					    </td>
					  </tr>
				</table>
				</logic:notEmpty>					
			
			</form>
		</div>
	</div>
</div>
</body>
</html>
